#!/usr/bin/env bash

# DATA_PATH/site => /var/www/html
# DATA_PATH => /data

# 切换到项目目录（容器目录）
LARAVEL_PATH=/var/www/html/laravel8
cd ${LARAVEL_PATH}

# 迁移数据库结构
php artisan migrate --path=database/migrations/v1
php artisan migrate --path=database/migrations/v2
php artisan migrate --path=database/migrations/user
php artisan migrate --path=database/migrations/safety
php artisan migrate --path=database/migrations/system
php artisan migrate --path=database/migrations/cms
php artisan migrate --path=database/migrations/erp
php artisan migrate --path=database/migrations/crm
php artisan migrate --path=database/migrations/ai
php artisan migrate --path=database/migrations/ad
php artisan migrate --path=database/migrations/dooluu

# 填充默认数据
php artisan db:seed